How to implement union( ) method for sets in Python